package com.rongke.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.mapper.UserPhoneMapper;
import com.rongke.model.UserPhone;
import com.rongke.service.UserPhoneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @UserPhoneServiceImpl
 * @ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class UserPhoneServiceImpl extends ServiceImpl<UserPhoneMapper, UserPhone> implements UserPhoneService {

    @Autowired
    private UserPhoneMapper userPhoneMapper;

    public List<UserPhone> selectByPage(Map<String,Object> map){

        List<UserPhone> list = userPhoneMapper.selectByPage(map);

        return list;
    }

    public Integer selectCount(Map<String,Object> map){
        Integer count = userPhoneMapper.selectCount(map);
        return count;
    }

}
